home *** CD-ROM | disk | FTP | other *** search
- --= SID = SIMTEL20 Ada Software Repository Item Description File = SID =--
- -- UNIT NAME : HF-GRAMMAR
- -- VERSION : 1.0
- -- REVIEW CODE :
- -- DDN ADDRESS : HFischer@ECLB
- -- AUTHOR : Herman Fischer
- -- : Litton Data Systems
- -- : 8000 Woodley Ave, ms 44-30
- -- : Van Nuys, CA
- -- : 818-902-5139
- -- : G Fisher and P Charles
- -- COPYRIGHT : (c) Herm Fischer 1984
- -- DATE CREATED :
- -- DATE RELEASED : 15 Dec 84
- -- DATE LAST UPDATED : 26 Mar 84
- -- LOCATION : ASR
- -- ENVIRONMENT : UNIX
- --= CLASSIFICATION ===============================================--
- -- CATEGORY LEVEL 1 : GRAMMAR
- -- CATEGORY LEVEL 2 : Ada Grammar 1
- -- CATEGORY LEVEL 3 :
- -- CATEGORY LEVEL 4 :
- -- KEYWORD : Ada
- -- KEYWORD : Grammar
- -- KEYWORD : UNIX
- -- KEYWORD : LALR
- -- KEYWORD : LALR(1)
- -- KEYWORD : YACC
- -- INDEX : Grammar, Ada
- -- INDEX : Ada Grammar
- -- INDEX : LALR
- -- INDEX : YACC
- -- TAXONOMY :
- -- DEPENDENCIES :
- -- SEE ALSO :
- --= FILE LISTING ===============================================--
- -- FILE SPECS : PD:<ADA.EXTERNAL-TOOLS>GRAMMAR.*
- -- DIRECTORY DISPLAY :
- -- Directory PD:<ADA.EXTERNAL-TOOLS>
- -- File Name Byte Count Line Count
- -- --------------- ---------- ----------
- -- GRAMMAR.PRO 7366 131
- -- GRAMMAR.SRC 45547 1846
- -- =============== ========== ==========
- -- 2 Files 52913 1977
- --= ABSTRACT ===============================================--
- -- This grammar is organized in the same order as the syntax
- -- summary in appendix E of the ANSI Ada Reference Manual. All reserved
- -- words are written in upper case letters. The lexical categories
- -- numeric_literal, string_literal, etc, are viewed as terminals. The
- -- rules for pragmas as stated in chapter 2, section 8, have been
- -- incorporated in the grammar. Comments are included wherever we had to
- -- deviate from the syntax given in appendix E. Different symbols used
- -- here (to comply with yacc requirements) are of note:
- --
- -- {,something} is denoted ...something..
- -- {something} is denoted ..something..
- -- [something] is denoted .something.
- --
- -- Constructs involving meta brackets, e.g., ...identifier.. are
- -- represented by a nonterminal formed by concatenating the construct
- -- symbols ( as ...identifier.. in the example) for which the rules are
- -- given at the end. When reading this grammar, it is important to note
- -- that all symbols appearing in the rules are separated by one or more
- -- blanks. A string such as 'identifier_type_mark is actually a single
- -- nonterminal symbol defined at the end of the rules. The '' symbol is
- -- used to indicate that the rest of the line is a comment, just as in
- -- yacc programs.
- --
- -- This grammar is presented here in a form suitable for input to
- -- a yacc parser generator. It has been processed by the Bell System III
- -- lex/yacc combination, and tested against over 400 ACVC tests.
- --= REVISION HISTORY ===============================================--
- --
- -- DATE VERSION AUTHOR HISTORY
- -- 12/15/84 1.0 Herman Fischer Initial Release
- --= RELEASE NOTICE ===============================================--
- -- This prologue must be included in all copies of this software.
- --
- -- This software is copyright by the author.
- --
- -- This software is released to the Ada community.
- -- This software is released to the Public Domain (note:
- -- software released to the Public Domain is not subject
- -- to copyright protection).
- -- Restrictions on use or distribution: See above for the author's
- -- requested restrictions; commercial use (ie, sale) prohibited
- --= DISCLAIMER ===============================================--
- -- This software and its documentation are provided "AS IS" and
- -- without any expressed or implied warranties whatsoever. No warranties
- -- as to performance, merchantability, or fitness for a particular
- -- purpose exist.
- -- The user is advised to test the software thoroughly before
- -- relying on it. The user must assume the entire risk and liability of
- -- using this software. In no event shall any person or organization of
- -- people be held responsible for any direct, indirect, consequential or
- -- inconsequential damages or lost profits.
- --======================================================================--
-